﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head><link rel="stylesheet" href="${ctx}/common/common.css">
    <title>Title</title>
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/style/admin.css" media="all">
    <script src="${ctx}/common/plugins/layuiadmin/layui/layui.js"></script>
    
    <script src="${ctx}/common/plugins/publicJs/publicJs.js"></script>
<style type="text/css">
    	.rowtop{
    		padding: 10px
    	}
    </style>
</head>
<body>
<form class="layui-form layui-container"  action="${ctx}/products/${action}" style="background-color: white;" >
    <input type="hidden" name="id" value="${entity.id}" />
    <div class="layui-row rowtop" style="margin-top: 20px;">
    	<div class="layui-col-md5">
	        <label class="layui-form-label">产品名称</label>
	        <div class="layui-input-block">
	            <input type="text" name="name" value="${entity.name}" disabled autocomplete="off" class="layui-input">
	        </div>
    	</div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">规格</label>
	        <div class="layui-input-block">
	            <input type="text" name="specifications" value="${entity.specifications}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
			<label class="layui-form-label">产品类型</label>
			<div class="layui-input-block">
				<input type="text" value="${classifyEntity.name}" disabled autocomplete="off" class="layui-input">
			</div>
		</div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">产品标识码</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.standardNum}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">保质期</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.shelfLife}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class="layui-col-md5">
	    	<label class="layui-form-label">溯源类型</label>
			<div class="layui-input-block">
	            <input type="text" value="${traceabilityName}" disabled autocomplete="off" class="layui-input">
	        </div>
		</div>
	</div>
	<div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">执行标准</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.perfStandard}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">投产时间</label>
	        <div class="layui-input-block">
	            <input type="text" value="<fmt:formatDate value='${entity.intoProductionTime}' pattern="yyyy-MM-dd HH:mm:ss"/>" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">容量</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.capacity}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">重量</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.weight}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">工序数</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.processNum}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">商标号</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.trademarkNum}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	     <div class=" layui-col-md5">
	        <label class="layui-form-label">参考单价</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.referUnitPrice}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class=" layui-col-md5">
	        <label class="layui-form-label">单位</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.unit}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	     <div>
	        <label class="layui-form-label">产品介绍</label>
			<div class="layui-input-block">
				<textarea name="introduction" disabled class="layui-textarea">${entity.introduction}</textarea>
			</div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">创建人</label>
	        <div class="layui-input-block">
	            <input type="text" value="${entity.creatorName}" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">创建时间</label>
	        <div class="layui-input-block">
	            <input type="text" value="<fmt:formatDate value='${entity.createTime}' pattern="yyyy-MM-dd HH:mm:ss"/>" disabled autocomplete="off" class="layui-input">
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
		<div class="layui-form-item layui-upload">
		  <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
		    	产品图片：
		    <div class="layui-upload-list" id="demo2">
		    <c:forEach items="${imgList}" var="img">
		    	<div id="delDiv">
		    		<img style="width: 100px;height: 100px;" src="${ctx}${img.pictureImgT}" class="layui-upload-img">
		    	</div>
		    </c:forEach>
		    </div>
		 </blockquote>
		</div>
	</div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" id="rollback" class="layui-btn layui-btn-primary">返回</button>
        </div>
    </div>
</form>

<script>
    layui.use(['upload','layer'], function(){
    	  var $ = layui.$
    	  ,upload = layui.upload,layer = layui.layer;
    	  
    });
    document.getElementById("rollback").addEventListener("click",function(){
        window.history.back();
    })
</script>
</body>
</html>



